""" 
@Version: 0.1
@FileName    :    piecewise
@Author      :    kx
@CreateTime  :    2021/7/5 18:01 
@Description :    
"""

x = float(input('x = '))
if x > 1:
    y = 3 * x - 5
elif -1 <= x <= 1:
    y = x + 2
else:
    y = 5 * x + 3
print('f(%.2f) = %.2f' % (x, y))
